#ifndef MUDUO_BASE_NONCOPYABLE_H
#define MUDUO_BASE_NONCOPYABLE_H

namespace muduo
{
  //  不可复制类 重构复制拷贝和赋值运算符 编译报错
  class noncopyable
  {
  public:
    noncopyable(const noncopyable &) = delete;    // 删除拷贝构造
    void operator=(const noncopyable &) = delete; // 删除赋值运算符

  protected:
    noncopyable() = default;
    ~noncopyable() = default;
  };

} // namespace muduo

#endif // MUDUO_BASE_NONCOPYABLE_H
